package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.Product;



public interface IProductService {

    public ServerResponse saveOrUpdateProduct(Product product);

    public ServerResponse setSaleStatus(Integer productId,Integer status);

    public  ServerResponse manageProductDetail(Integer productId);

    public ServerResponse getProductList(Integer pageNum,Integer pageSize);

    public  ServerResponse<PageInfo> searchProduct(String productName, Integer productId, int pageNum, int pageSize);

    public  ServerResponse getProductDetail(Integer productId);

    ServerResponse<PageInfo> getProductByKeywordCategory(String keyword,Integer categoryId,int pageNum,int pageSize,String orderBy);
}
